package com.example.multidatasource.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.example.multidatasource.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * 
 *
 * @author ruoan
 * @email zwb55217421@163.com
 * @date 2020-10-10 14:49:36
 */
@Mapper
@DS("slave")  //切换这个mapper对应的数据源为slave数据源， 默认是 master数据源
public interface UserMapper extends BaseMapper<User> {

}
